Added a scroll bar to the left side of the main menu.
Added a listener to close the database once the program is closed.