store heuristics in the db, can go 5 levels deep now!