How To Automate Sql Queries Using Python