Add SQL utility functions.