Autoscan of databases and forests