Fix value sent to MySQL for type BOOL