add a procecure for userdb