SQLite-based CRL Reader/Writer

This is a continuation of the work in #75 fixing a few small issues and complying with the current rubocop style.