[SW] Bug 940273 Factor Cache DB schema into separate code file.