Wrapper for the MySQLi functions in PHP, also supports persistent connections.