Added handler to execute the PreparedStatement when validating a custom SQL. refs #454