how to store values in database at hierarchical view

I would suggest a custom hierarchical taxonomy; call it ‘menu’.

Top level terms (menus), have child terms (menu groups). Each child term has one or more posts (menu items) associated with it. Posts have custom fields (price) attached to them.

Note that you will need some custom code (a category walker) to display the menu items for each menu group on the front-end.