fixing some validations, adding new sql script