fixing datarepository to work with mysql booleans