migrated database from sqlite to postgres