Refactoring MONGO_METHOD calls in mongoclient.c and mongo.c

https://jira.mongodb.org/browse/PHP-820 and related sub-tasks
I didn't think it was important here because this function only deals with a database. For selecting a collection, we absolutely want "dbname" and "collname" parameters to differentiate.