csv support

Here's the csv stuff. DB will be next.