Added waiting for nodebot's response and delays between database querying