Move tweet query handling from controller to tweetToQuery.js