Add support for subusers to db.