fix SQLBool conversions, wrote tests for same