Signal does keep the message history in an encrypted sqlite file.
Unfortunately they store the key in plaintext alongside it.