A little database manipulating program I wrote a while back