changed sync callbacks to follow activerecord before/after create/update/destroy pattern