Merge pull request #447 from douginator2000/agut

Lots of updates to consolidate sql scripts and sample status logging