added -r flag for resetting database
Merge pull request #126 from mtpoutanen/added_reset_flag

added -r flag for resetting database