Added SQLite workaround for checking if DB is available