changes for syncing between search index and database