In literature, it is reported that barbituric acid is soluble in water, however, it appears to have solubility issues and as such it does not dissolve completely in water or alcohol.
The solubility of barbituric acid in water at 20°C is about 1 weight-%. It is a CH-acidic acid slightly more acidic than acetic acid. Therefore bases, like ammonia, NaHCO3, or amines dramatically improves solubility but perhaps also for the products from which you want to seperate the barbituric acid (?).
Barbituric acid slighltly soluble in water. So, you can wash the reaction mixture with NaHCO3 solution after completion. it may remove the unreacted barbituric acid.