remove sql from public view