Revert from mysqli to mysql library :(

mysqli is not available in production. 
This is a scary reversion. Again, I'd feel better if it were `mysql_real_escape_string($me, $conn)` so that it works explicitly with the character set of `$conn`