fix for postgresql when using an alias.
Merge pull request #143 from michele-comitini/table_name_quoting_bug

fix for postgresql when using an alias.