python: insert 2d array into mysql table,db.commit()