Data and Tor js added, modular comm and db calls