update to new mongodb driver and ported the conf_file parameter to the common layer

Signed-off-by: Claudio Bisegni <Claudio.Bisegni@lnf.infn.it>