If you want to avoid Duplicate elements to be inserted into database ,
var rows = dbHandle.execute('select * from shoppingList where shopping_name = ?', editText.value);
2 ) And if rows.getRowCount == 0 , then insert that value into database.
Show a notification that a duplicate element already exists.