Feature/pkgdb

This should fix #28.