Added storage of key checksum to the key database.