Improved error message given when the user asks for a run that does not exist
Improved handling of default pipeline database file name
Reinstated to working order (was using old API)