added initial trace logging to application startup which works. Changed the application startup handler to use new logging, now the system won't bork if the sql db isn't initialized.