Added way to specify multiple databases. And some other minor changes.