implementation of the SQLlite storage version