Shared Utilities for Chart and Database