have common callback for all CRUD operations