Fix access db cursor