Merge pull request #20 from hawesie/hydro-devel

Adds update method and switch C++ to BSON
Merge pull request #21 from BFALacerda/hydro-devel

swapping order of target link libraries to fix compiling error
fixed update bug where meta info not updated got dropped from the db