lib/db: PackagesDB: add get_version(package_name) method

Signed-off-by: Andreas Beckmann <anbe@debian.org>