Remote database management of encoded image data