utilities for gem database