Setting up database cache directory.