Update query with pretty printing