swap from local sqlite to postgres