Set up data base connections