46 static sqlite3* m_dbhandle = NULL;
86 sqlite3* connection = NULL;
96 va_start(ap, database);
101 status = sqlite3_open(database, &connection);
111 m_dbhandle = connection;
157 if (dbhandle == m_dbhandle) {
160 sqlite3_close((sqlite3*) dbhandle);
188 return dbhandle != NULL;