Configure database for postgres