Move function to SQLUtilities.
Move function to SQLUtilities.