Migration to python-sql

review1001002