delete useless code
fix up mongo client
delete document