Rob,
Our legacy code did exactly what you did, with printers defined in the db with the appropriate PCL to send escape codes. Note that we work strictly on various flavors of Linux and *nix.
A few years ago, though, I wrote a front end to pdfinclude that works extremely well for us, and...