remote database working