\set dbuser `echo "$POSTGRES_USER"`
\set dbname `echo "$POSTGRES_DB"`
\set pwd `echo "$POSTGRES_PASSWORD"`
\set synapsedb `echo "$SYNAPSE_DB"`

CREATE DATABASE :"synapsedb"
    LC_COLLATE 'C'
    LC_CTYPE 'C'
    TEMPLATE template0;
GRANT ALL PRIVILEGES ON DATABASE :"dbname" TO :"dbuser";