#2586: added an index on StateLog and updated the index on RequiredPlugins to include additional columns