fixed adding items with sql