Miscellaneous database utilities for go