sql.py changed