DB validations in a singl file