SQLStatement::num now ensures numeric value

PDO doesn't convert it to a number in SQL, this causes serious issues when
making comparisons and assinging to variables. To avoid errors, the num
function will now convert to a number to ensure the SQL will contain a
number and not a string value.
cleanup