Modified the library to use a single db object reference.
3.0.1