Small changes to sql_query

Made queryTable accept string argument instead of table class from
alchemy