added the structure to populate menus from the db