29187 update indexes on create/update/delete of documents

Currently one needs to run updateAllIndexes before querying the datastore. This PR fixes that by making each update to the datastore run updateAllIndexes in the background.