Python: insert 2D array into MySQL table,db.commit()