adds database directory and in_memory file