adding log to all create and update operations