I think it might be a good time to turn to your local help resources. Who wrote the rest of the PERL stuff that you are using? Can you talk to them about it? Your local DBA? How about the "They" who want a one click solution?