Replacing all DB::$property with self::$property. Better practise for PHP 5 and easier to extend if needed.
Replacing $pdos with the more easily recognised $dsn.
Fixing some dodgy looking tests ('=' instead of '==' or '===').
Merge branch 'dev' into dev-DB-refactor

Conflicts:
	www/lib/framework/db.php
Converting class to extend PDO. This will expose all of PDO's functionality without needing to wrap every method unless we want to add to the method ourselves.
Refactoring Databse setup into its own method to make it easier to read and be callable separately (ping() needs to call it and isn't currently).
Removing duplication.
Refactoring database initialisation.
Adding explicit properties for IDE autocompletion.
Adding $options to Prepare() and adding some documentation.
Adding isInitialised() method.
Making error messages use ColorCLI() outputting.
Refactoring query methods.

Most eventually call queryDirect via queryArray if results wanted in an array.
queryAssoc() is fixed so that it works more as intended.
Added Doc-Blocks to all methods I changed.
Fix ping()'s restarting. Broken since DB() replaced with __construct().
Fixing block formatting.
Fixing bad IF
Merge branch 'dev-DB-refactor' of https://github.com/niel/nZEDb-main into niel-dev-DB-refactor
refactored db.php, updated groups.php purge to handle tpg