g_sorcery/package_db: fix sync and do not use multiprocessing in check_manifest
g_sorcery/g_collections: add equality and hash to Package
tests/test_PackageDB: test database functionality