remote database handler