Slight improve in insertIdsToKeyMaster method. Instead of querying in each insert for the nodeid, we get the node names to node id mapping in a HashMap through another query.