Fixed boolean, and added a mysql.d with a basic unittest.