made sync for sqlite