Add qualified table_name support

In order to use database schemas you have to qualifiy table names which makes handling of "tablename to string" at bit harder