Remember active dirs in the database.