insert items into db and read items from db