You can write a HTTP handler that adds your watermark to all images requested from the DB. Then you're asking a simple GDI+ question, how to draw an image transparently over another. The ImageAttributes class is what you need, google that for lots of examples. You can use a color range to draw transparently, on your logo.
Christian Graus Driven to the arms of OSX by Vista.