Fixed issues from previous merge and added temporary item database interaction