connection to MOOSDB with callbacks provided