Save items to database.