lying around when doing queries by module. This is a good idea, but
only works when the query being done is for the default module for a
tree. This isn't always the case! Rolled back code to Lloyd's old
code, which nobody really understands, but it works...
DBI::mysql instead of the mysql perl module that came with mysql. One
side effect of htis is that it now tries to log in as user "bonsai";
I'm actually not sure what username it was trying before. Also, fixes
a few minor bugs.