Updated save to database