cosmos to sqlite

Ok. Interesting idea. We should probably rewrite them in some sort of standard testing framework. I can take point on some of that, since I need to write tests for other things.