implemented method for returning all table-names in a database