in reply to storing perl code in database

I couldn't find Module::Loader. Can it reload the module while mod_perl is running? If not, you would have to restart your apache after changing a script

Do you trust your users to write correct scripts? If not, you want to use eval to at least recover from syntax errors gracefully.