rewrote persistence layer to use sqlite with korma as database, have not updated the rest of the code yet