add methods to save and load using secondary indexes, supports only a single index result for now