store images in db ongoing