Added automatic upgrade (cipher_migrate) of the sqlite database.