Update mongo.erl

Fixes syntax error in newer erlang versions