fixed a number of functions to return logical results rather than ints
fixed a number of functions to return logical results rather than ints

gerald-lindsly/rmongodb,gerald-lindsly/rmongodb,Burningcode/rmongodb,Burningcode/rmongodb,Burningcode/rmongodb,gerald-lindsly/rmongodb