Changed the digest type to String
Added more logging
Moved the SQLite logic into a try block which redirects to an
IOException, so that it can be handled transparently in Store