An append only database indexed using sparse data structures