Improved the database/table/result set validation and using named exception ParameterValidationError