fixed from using where(:id => id) to find(id), updated deploy script