#2 working on mysql version of indexer