added check_mongodb_write.pl
updated Makefile
updated check_mongodb_write.pl
updated lib