mkdb: use an indent of 4 for the hierarchy

This is the same as in the per-module hierarchy. Also fix an of by one in the initial indent.