fix sql  urls