db sync for appointment