fixed crud operations

fixed crud operations for ingredients, so array items could be used in
node js
last commit after paper submission