MySQL proper UTF-8 support.
Slightly smarter error handling when server is down
package common JSON parsing into _parse_json()