Add indexWithVersion method for concurrency control

Signed-off-by: Fadion Dashi <jonidashi@gmail.com>