Add support for reading from stdin

This patch adds support for reading database dumps from stdin by specifying the filename "-", just like the diff command in UNIX.