Fix bug in sql tabular output

During conversion from Fortran to C++ a bug was introduced causing the row and column
labels of tabular reports in sqlite db to be mixed up.  The origins
having to do with FArray being column major and the offending sqlite
output code using the linearized index.

[#83704438]
Fixes #4602
Fix missing data in DaylightMaps table

The data for DaylightMaps was not getting inserted into the SQLite
database due to an incorrect variable used in the preparedStatement.
Merge pull request #4617 from NREL/fix_daylightmap_table_insert

Fix missing data in DaylightMaps table
Merge pull request #4614 from NREL/83704438-TabularSQLBug

Fix bug in sql tabular output
Address SQL conflict