Fixing insertion of entry without day, wasn't moving to first the db cursor