storing names in db