added advanced validation for ingredients, sets name to be name and date if duplicate, removed some fields and table columns to make it more readable