Some minor fixes
Fix for not opening file in write mode to unpack
Fix crashes when a file doesnt exist or db hasnt been setup
Updated librarian dependency