first query for all the data in the table
query for only id and menu name