I created this ages ago, and thought I'd post it here for completeness in case the project gets restarted. The diff is against the latest download version but there appears to be a section in it which is nothing to do with me, so the code I was using could have been from elsewhere.
There is a bug which causes a number of spaces at the start of the first line (@database) which appears to be...
2009-10-04 23:04:42 UTC by chris_y