Added a function that generates a custom result set for SHOW DATABASES.
Fixed SHOW TABLES not using the current database.