dvb/db: Replace "256" with "sizeof", use switch

Avoid magic numbers in snprintf and friends.
Use a switch/case to prevent comparing more then once.