database with mlm structure