add mysqli version of db.php