convert mysql TINY to js Boolean