mysqli additions

Lets make it work a little better then!

* switch install, upgrade to mysqli
* add connection as instance var in the Db class.
* remove $db_connection global