Poll Jobs: Properly use DB index

Why do we sometimes use 0-based, sometimes 1-based indices?