[REVIEW] Fixed dbpatch by using janus database parameters

Fixes usage of janus db config which is no longer in a php file
Could you add which path it was trying to read? Doubt that this will ever fail, but if it should then it would be nice to know what it is trying to read.