Refactoring MONGO_METHOD calls in mongoclient.c and mongo.c

https://jira.mongodb.org/browse/PHP-820 and related sub-tasks
I would probably have done this:

```
if (db) {
    RETURN_ZVAL(db, 0, 1);
}
```

as the "return;" is implicit at the end of the func.