Add commandline argument to specify db
Add command-line argument to specify database file.
    * allow a new database file to be created

Add command-line argument to specify source as a modified URI
    * in addition to typicaly URL types, also support mbox

some refactoring for modularity and readability