removed db-bool; use bool2int instead