databaseInterface: support passing argument tuples

These allow values to be passed into SQL statements without interpolating
them into the string, preventing possible SQL injection issues.
For example:

sql = """SELECT * FROM fpr_formatversion WHERE uuid='%s'""".format(uuid)
databaseInterface.queryAllSQL(sql)

Could be run as:

sql = """SELECT * FROM fpr_formatversion WHERE uuid=%s"""
databaseInterface.queryAllSQL(sql, (uuid,))

Since the values are inserted here without string interpolation, there
is no risk of quoting issues or SQL injection regardless of the contents
of the values.

Fixes #4901.
emailFailReport: don't interpolate values into SQL

The HTML document being embedded can contain single quotes.

Fixes #7208.
databaseFunctions: convert to use SQL parameters

refs #4901
DBFunctions: Fix Event creation

refs #4901

With passing parameters directly to the DB, do not use string 'NULL'
instead of None/NULL.  Remove this fallback from insertIntoEvents, as
getAgentForFileUUID return None by default. Actual agent values do not need
to be double quoted, so just return the value instead of the string with
quotes around it.
Revert "updating mysql files"

This commit fixed the mysql files as used in packages,
but broke dev-helper based installs.

Reverting so change can be included in dev/issue-7072-upgrade branch

This reverts commit 327f735528d2eb4d6c72dfe45c041fe8bddcc7e0.
createMETSRights: namespace PREMIS elements

Fixes #7210.
createMETSDspace: fix mdRef prefix

Fixes #7212.
createMETSTrim: namespace elements
Maildir: Temporarily disable transfer type

refs #7228

Remove maildir as a transfer type until it is better supported and doesn't
always break.
Ingest: Normalization report links visible as links

refs #7217

Use normal HTML to make links, instead of JS, so the links are visibly
styled as links.  Remove duplicate links so that only the normalization
attempted column is a link to reduce confusion.
FPR: add new validation tool/command/rules

refs #7216
Validation: Add client script

refs #7216

Add validate file client script to run validation FPRules and generate
Events from the output.  Update fpradmin commit to include validation
purpose.
merge sql files

get dev-helper to use the same sql file the packages uses.
update dashboard and MCPServer packaging

make the dashboard a dependency of MCPServer
and make the dashboard run syncdb to update its database dependencies.
adding mysql updates file

refs #7072

contains mysql diff from 1.1.0 to 1.2.0
used by dbconfig-common when upgrading
Merge branch 'dev/issue-7072-upgrade' of git.artefactual.com:archivematica into dev/issue-7072-upgrade

Conflicts:
	src/MCPServer/share/mysql_dev1.sql
	src/MCPServer/share/mysql_fpr_1.0.sql
	src/MCPServer/share/mysql_fpr_dev1.sql