re-added sql