sending from js the global databases