message: Fix for passing in nullptr to sqlite::QueryDatabase
diff: @@ -114,6 +114,9 @@ bool TransferDatabase(Connection &con, sqlite3 *sqlite) {
  unique_ptr<QueryResult> QueryDatabase(vector<SQLType> result_types, sqlite3 *sqlite, std::string query,
  volatile int &interrupt) {
  + if (!sqlite) {
  + return nullptr;
  + }
  // prepare the SQL statement
  sqlite3_stmt *stmt;
  if (sqlite3_prepare_v2(sqlite, query.c_str(), -1, &stmt, nullptr) != SQLITE_OK) {
  