...but have you tried creating document groups and adding web groups into it. Then create pages and assign them to the document groups. Also if you are using the login snippet, you should update its &loginhomeid=`2,3,4` where 2,3,4 are starting document id’s for different document groups.
Perhaps you’re looking for the Extended User Profiling snippet?
what kind of user data would you like to get from the database?