mysql-utilities formula code clean-up suggested by adamv