Added regex and replace rules for validator
Added _raw method for databases