update for mysqldb