Updated all sql code to use the sql caching mechanism.