Fixed a problem when using Booleans with mysql. Turns out mysql does not understand about true or false, but 0 and 1s