Compile new database when corpus changes.