Modify how to deal with mongodb

Can you make the timeout an optional parameter? I will probably set it much lower in hdproweb.