save items in db, possible bugs