Addes setup of database to main menu and moved associated logic to set it
up