Don't start sample analysis if current status is failure; first SQLAchemy work for local job tracking

The job tracking still needs to be moved into the engine_ngi submodules but this is the first example of how we will access things
To reduce verbosity we also need in the future to stop checking projects older than a certain amount