Added code for issue #97

Naveed requested some data transformations to smooth the automation of
loading data generated by the Data Engine into the SQL Database. See
issue #97.
Resolve issue #98

Pass one the active model to the database for loading. Issue #98.
Completed issues #97 and #98

Completed issues #97 and #98