Fixed to work properly now.

Earlier the problem was the on the endElement
event we didn't get any value but still called
the store method of FoodItem object.

Added a quick fix to disallow storage for the object
after endElement is encountered.

TODO
1) Need to add meta-data saving part.

2) Need more flexibility on query part instead of directly asking for data.