fixed duplicate entries

added some logic that will skip observations if their obsid already
exists in the database.