Trying to fix cursor iteration, jumping first cursor position
Working on a bug
Fix bug storing incorrect first date in database and database array
getting skipping first cursor entry