Database changes for optimisations and fixFiles.