REGISTRAR: compatibility while enabling/disabling notifications

- Cast boolean to varchar on Postgresql.