46 static sqlite3* m_dbhandle = NULL;
87 sqlite3* connection = NULL;
97 va_start(ap, database);
102 status = sqlite3_open(database, &connection);
112 m_dbhandle = connection;
158 if (dbhandle == m_dbhandle) {
161 sqlite3_close((sqlite3*) dbhandle);
189 return dbhandle != NULL;