mtest[46]: Use different DBs when different flags.
mtest*.c, sample-*.c: Add/note error checks.