Shuffle startup order in main process

Initialise the logging code before talking to the database, so we can
log things in the database code. Desired so we can see migrations
being logged as they happen.

Change-Id: I7cd9a01f8390a64669ac5e2efa516401558a48ea
1 file changed