add badge_name_to_id function in dbapi
let's put the badge_name_to_id function in util.py
Merge pull request #35 from fedora-infra/feature/badge-name-to-id

add badge_name_to_id utility function