generate user id
support mongodb and adding ids before insert