main/tdb: upgrade to 1.3.1