working main menu, db integration