wrapped update_queue into .transaction block