Fix for failed downloads and improper storing of release name in db