Added indexer, REPL and fixed a bug in query parser