Return information about numbers, strings and identifiers from SQL parser

Also fix some bugs in the SQL grammar.