add ability to handle MySQL booleans
fix boolean test so it knows it is working with a boolean value