migrated db from sqlite to postgresql