Query media db instead of poms.