Change database directory structure.