added function to add undefined item into db