replaced dm_response{} with with_update{} and call DB.transaction inside it