- fixed measurement status in results.
- moved database status logic out of library and into service