fixed boolean conversion from database number type