Feature/mysqli

MySQLi support. Improves upon pull request #569