Finalize first version of the resouce cache db schema
Differential revision: https://phabricator.kde.org/T8775