printf("Database \"%s\" open (ro: %d)\n", dbfilename, readonly);
}
rc = sqlite3_db_config(db, (SQLITE_DBCONFIG_DQS_DDL | SQLITE_DBCONFIG_DQS_DML), 0, (void*)0);
if (rc) {
db_errcode = rc;
if (debug)
printf("Error (debug): Can't set DQS on connection to \"%s\": %s\n", dbfilename, sqlite3_errmsg(db));
return 0;
if (createdb) {
#ifndef CHECK_VNSTAT
if (!spacecheck(cfg.dbdir)) {