Fixed possible memory growth problem where used dbstructs were not being pushed back on the stack