C connect to mongodb example