Convert db connection to variable.

Instead of instantiating a new db connection every time one is needed.
They connection is stored a $this->db in the dbConn class. This class is
extended by every other class and gives access to all extensions.