change database directory structure