Set up db and shared environment config