added (untested) CSV export

Hi Emir!

I've tried my hand at it real quick. I'm not 100% certain this works, since I had some trouble setting up a PHP+MySQL stack. Hope you can use it, though. It's really been a while, since I last did PHP...

Best,
     Hendrik