Removed old file checking SQL code.
Cleaned up the scan state. We no longer have a situation where the state of one scan would be in error, since we get the list of all good scans before doing any processing, so Error was removed. This meant a few things: ScanState is now an int rather than a struct that stores the error in addition to the state, ScanState.TypeString() is no longer needed because that was done specifically for errors, the Error case in the report pages are no longer needed, and the code is somewhat cleaner now.