Initialize SubmitQueue before starting App.

If there is any 'Pending' or 'Running' submissions, we need to
push them into the queue before starting the App.
Log SQL queries and the submit queue.