Fixed so db directory is in tree.