public static ResultSet getFeed(int userId, Connection cnxn) {
		Statement stmnt = null;
		String query = "";
		ResultSet rs = null;
		
		try {
			stmnt = cnxn.createStatement();
			
			//TODO: write stored procedure
			/*TODO: get user's tweets + follows'query = "SELECT * FROM ( " +
						"SELECT E.name, C.id, C.tweeted_at AS tweettime " +
						"FROM Users A, Follows B, Tweets C, Sends D, Users E " +
						"WHERE A.id = " + userId +
						" AND A.id = B.user_id_follower " + 
						"AND B.confirmed = true " +
						"AND B.user_id_followed = D.user_id " + 
						"AND C.id = D.tweet_id " +
						"AND E.id = D.user_id " +
						
						" UNION " +
						
						"SELECT A.name, D.id, D.tweeted_at AS tweettime "+
						"FROM Users A, Sends C, Tweets D " +
						"WHERE A.id = " + userId +
						" AND C.tweet_id = D.id) a " +
						
						"ORDER BY tweettime";*/
			query = 
					"SELECT E.name, C.id, C.tweeted_at " +
					"FROM Users A, Follows B, Tweets C, Sends D, Users E " +
					"WHERE A.id = " + userId +
					" AND A.id = B.user_id_follower " + 
					"AND B.confirmed = true " +
					"AND B.user_id_followed = D.user_id " + 
					"AND C.id = D.tweet_id " +
					"AND E.id = D.user_id " +
					"ORDER BY C.tweeted_at DESC";
						
			rs = stmnt.executeQuery(query);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
		return rs;
	}