Fixed the dbindex issue in the onMapReport.js file.