database directory structure