Suppress unused parameter warnings in tests/load/.
Tidy-up in db_load.c

Some overly-complex code to do simple things, some stray code
commented out that might as well be removed.  Moved CoinFlip one
function earlier to save the need for pre-declaration.