this reinstates the boolean fields in the database from the original PR to work around a foreign key contraint. THE UI remains unchanged