Revert from mysqli to mysql library :(

mysqli is not available in production. 
ok. and I agree it's scary.