migrated app to postgresql db