Correct db cursor