adds immediately invoked recursive function to query database every ten seconds for 1000 tweets