Added untested PipelineStatus and manager.

Hard to test without being able to actually execute pipelines.
Added code to update queries.