updated check_mongodb_write.pl
updated check_mongodb_master.pl