library cleanup

DBhelper should destruct properly