Fix problem with spaces in tablenames

using a Microsoft SQL server I found table names with spaces O_o.
I develop a patch that, mantaining the back compatibility, match table having spaces requiring the use of an alias (with or without AS).