Do sqlite3_stmt preparation the first time it is used, storing the result in a static variable within the function. This is also stored in a global array so that the statements can be finalised before the db is closed. This reduces the number of global variables and reduces the chance for messing things up.
Do sqlite3_stmt preparation the first time it is used, storing the result in a
static variable within the function. This is also stored in a global array so
that the statements can be finalised before the db is closed. This reduces the
number of global variables and reduces the chance for messing things up.

zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto,zlargon/mosquitto