combined es_cdbriver_start and stop into es_cdbriver_index
created es_index function for generall start and stop indexing documents