Sqlite

Preliminary PR. 

Need to take another look at this in the morning, but it works, so there is that.