Merge remote branch 'origin/develop' into qa
Replacing unsafe sql commands in upgrade scripts

Now that the cenozo database isn't necessarily "cenozo" there were
some SUBSTRING commands in the sql upgrade scripts which were no
longer valid.  This commit replaces them with the safer REPLACE
command.
Ignoring notice exceptions when onyx exports consents
Merge remote branch 'origin/qa' into release
Found better way to determine cenozo database name in sql script

Instead of relying on string replacements the cenozo database is
being found using the role_has_operation table's foreign key constraint
to the role table in the cenozo database.
Merge remote branch 'origin/release' into develop