Wrap db_active check in #ifdef DDB, as db_active is not defined ifndef DDB.
Wrap db_active check in #ifdef DDB, as db_active is not defined ifndef
DDB.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase