Add item and type retrieval from database