fixed crash if dbname or dbdir were not set
fixed crash if dbname or dbdir were not set

cention-nazri/libdbi-drivers,cention-nazri/libdbi-drivers,cention-nazri/libdbi-drivers,cention-nazri/libdbi-drivers