Fix silent data corruption for boolean values

Grr MySQL

Change-Id: I63a7f9d72b5629471fab41b90fd8f1de3eb0ebfe