fix pg problem with boolean 1/true