Boolean conversion

Added platform specific conversion form database Boolean type to PHP bool type
yes. since it is the default common behaviuour :)