Better caching code if DB does not exist
Better caching code if DB does not exist