MySQL Stored Procedures
Consider using stored procedures/routines for db queries
Offloads some processing from client end, and could provide an easy way to update queries on tooltron since the db stored code would need updated and, tooltron would not need reprogrammed.
mysql> CALL tools('81203081');
mysql> SELECT tools_6 FROM civicrm_value_roboclub_info_2 WHERE card_number_1 = 81203081