fixes an issue with magnitude threshold when an earthquake is added to the database