added indexing to jdbc repository (bug in 1.0.0)