Added two useful functions to SQLManager.