update library to check against multiple db files
cleaned up internals