Changed the mongo-c-driver to 0.8x.x

Updated the CFLAGS and LFLAGS appropriately
Changed the mongo-c-driver to 0.8x.x and added query test functions

Changed the code to work with the older mongodb driver API and added two functions that connect to the db and perform testing operations
added 'static mongo* dbh_get_conn()'
included the database handler header file
added a get_doc_cnt function

Returns the number of documents in a collection
cleaned up the source files

removed unused variable declarations and misc. updates