Handling Database With Mysql Using Cmd In Python Iteration