saves name to db