squashing bugs: dynamic error handling using try blocks, '?' --> '%s' since we now use mysql, float()