saving name in db