switch to mysqli if php5.5 is detected (mysql deprecated)