Reconstructing the database