Moved all tdb based indexing code to the backend