Although publishing to DB is ok, performance-wise not the best choice - it would be much better if you publish the images and other binary data to the filesystem or better CDN, while publishing the location path to the DB column instead of dumping all in DB -this is very easy and good for the DB as well.