Setting up the database cache directory.