> dbLoadDatabase("../../dbd/_APPNAME_.dbd",0,0)
is being interpreted as
> dbLoadDatabase("../../dbd/_APPNAME_.dbd","0","0")
If "../../dbd/_APPNAME_.dbd" doesn't exist, this will
next attempt to open "0/../../dbd/_APPNAME_.dbd",
which added to my confusion...