Changed db architecture and refactored the add item page