update query for casual register