Disable log option and ensure session database is connected before running app