Move ots data from sqlite to postgres