A simple database. Not useful, just as a learning exercise while in school many years ago, but it was written completely from scratch, even down to the physical read/writes from the disk.
I don't recommend doing that in a real app. But it was a good way to learn.