Initialize SubmitQueue before starting App.

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