{{- $database := .Var "db.database"     | as_string -}}
{{- $username := .Var "db.username"     | as_string -}}
{{- $password := .Var "db.password"     | as_string -}}
DROP DATABASE IF EXISTS {{ $database }};
CREATE DATABASE IF NOT EXISTS {{ $database }};
CREATE USER IF NOT EXISTS {{ $username }} WITH PASSWORD '{{ $password }}';
GRANT ALL ON DATABASE {{ $database }} TO {{ $username }};
