adding configuration file to query mongo
adding correct arity to init exported function