Added MySQLi Functionality

Tests if MySQLi is available and, if so, uses that in preference over
MySQL.