Adding Orca version to configuration database document

Also fixed a potential bug where documents are only posted to the Db when a run is online. Offline runs can be run in Orca and this could have caused duplicate entries of a run. This bug has now been fixed .