fixed database img refs