PDO instead of mysqli

Wrote a Database class that is backward compatible with the mysqli interface.
Renamed the variable mysqli to database