Validation and minor updates..
SQL