Open a database connexion.