Support for sanitization of database fields and associated fixes