more sql fix