Add dependency to DB Upgrade Routine 6

Fixes #1051
Merge pull request #1052 from jbeales/fix-missing-function-db-routine-6

Add dependency to DB Upgrade Routine 6