Fix: sql had issues under OSX.