Extended menu

Added submenu to execute queries.
Added quit option to menu.