dal.py: Table class: validate_and_update_or_insert method created, and minor changes in validate_and_update