Changed code to save raw data in table

I couldn't figure out how to do this without forking your repository so here's another pull request from my branch/fork/whatever it's called.