4: added mysql functionality and utf8 encoding to all output (mysql included).