saves to database
fixed reactive edit values