Fallback to title when id not available.
Set up db in common.py