migrated db and added pg