Migrated database to postgresql