44 static sqlite3* m_dbhandle = NULL;
84 sqlite3* connection = NULL;
94 va_start(ap, database);
99 status = sqlite3_open(database, &connection);
109 m_dbhandle = connection;
155 if (dbhandle == m_dbhandle) {
158 sqlite3_close((sqlite3*) dbhandle);
186 return dbhandle != NULL;