Backend updates

Removed all extend classes, because further testing showed that a static
DB class would not run self::$stmt->execute(); at some point. No fix to
be found.

Also updated a bunch of files that use this stuff.