Finishing edit modal saving to database