Caching into db now works