must also work with database having only picture fields