adding csv export
added ability to purge db
Merge pull request #3 from luckyx1/interval

Interval