using a remote database