Revert from mysqli to mysql library :(

mysqli is not available in production. 
ok