Fixed some slight issues with the item database interaction