Database.xml: do not open one db twice