set up remote database stuff