Add an index to contextid so we can make new tools faster without killing the db