Fixed some problems with load management and wrong var used in pushing db handles back onto the dbstack.