More efficient queries
Add sequence numbers for messages
Rename sort function
Add job_execution_output_id from message so we can use it in the frontend
Sorted output
Reducing need to look up job again