Boolean conversion

Added platform specific conversion form database Boolean type to PHP bool type