MySQLHandler + other fixes (all together, bad thing I know).