getTableNames function

List all tables in a database schema.