Centralized some recognition db helper functions.