adds database validations