parameters reworked to save in database only input values