fixed userPersistence to actually return the id of the inserted record