refactor HYG database examples