saved inputs to database