Sets up Postgres database