restoredb.sh: Support input files on command line.

Including compressed input files.