Fix undefined index when adding an item to cart
Changes to implement better error handling
Little fixes to search
Merge branch 'master' of https://github.com/gminaker/databases