Reverting to old sql format temporarily