fixing typos (populated db.adjacency instead of db.adj )