adding csv export
added ability to purge db