* updated listTables function to also take in account possible user-dbname difference