preparing nutrient db insertion on submit