Handle reference as string and as object
Fixed query for fetching verses