updates and fixes to archive megatestdb