fixed db reading (source indices)