how do i connect to a mysql database in python?,db.close()