DF Fixed problem with sql.