rewrote setkey and getuserinfodata