mongo, redis code "tunning" (about db connexion)