validations with sql