Utilities for databases