function storeAnItem created to store an item to db one row at a time
test
-CHANGE: storeAnItem function added