Fixing database for postgres.