Communicate with various databases in javascript