managing connexion to database on windows