$7,800 gift restores databases at SM public library