Changes database to Postgres
Fixes a bug.