update to fix null url for db - accidentally redeclared locally