Adding config and mongo access