[REVIEW] Fixed dbpatch by using janus database parameters

Fixes usage of janus db config which is no longer in a php file
SR does not use the QA tools and indeed much of it is without coding standard :frowning: but shouldn't there be a space between the if and foreach and the parens?