Migrated database to postgres