adjust menu and the database