wrote a code displaying databases and tables