Issue #912844 by drewish: Add db_queryd_range() to help debug range queries.