Boolean conversion

Added platform specific conversion form database Boolean type to PHP bool type
Please add the null as return value also, so: ``@return bool|null``