Started implementation of sqlite persistency