Update job document if it already exists
Update job document if it already exists

Apparently, I have not understood yet how the MongoDB, respectively
Mongoid update mechanism works. If I use .create! on attributes, which
theoretically map to the same object, it is not updated to the new
value. What works for now is to try to fetch the job document and use
.update_attributes if it already exists and .create! otherwise.

Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>

platzhirsch/metadata-census