Bug fix to implement qualified table name in format db.table alias

Move this to method local variable