Allow to setup the db url form code

Fixes a bug in add objects