private static void insertUserAndTweets(List<User> users, List<Tweet> tweets) {
		Connection con = null;
		PreparedStatement stat = null;
		ResultSet res = null;

		try {
			con = Database.getConnection();

			for (User user : users) {
				String preparedQuery = "INSERT INTO User VALUES (?,?,?,?)";
				stat = con.prepareStatement(preparedQuery);

				stat.setLong(1, user.getId());
				stat.setString(2, user.getName());
				stat.setString(3, user.getTwitterNickname());
				stat.setDate(4, new java.sql.Date(user.getJoinedDate().getTime()));
				try {
					stat.executeUpdate();
				} catch (SQLException eDuplicateEntry) {
					log.warn("Duplicate Entry in DB (User)!");
				}
			}
			for (Tweet tweet : tweets) {
				String preparedQuery = "INSERT INTO Tweet VALUES (?,?,?,?)";
				stat = con.prepareStatement(preparedQuery);

				stat.setLong(1, tweet.getId());
				stat.setLong(2, tweet.getAuthorId());
				stat.setString(3, tweet.getMessage());
				stat.setDate(4, new java.sql.Date(tweet.getDate().getTime()));
				try {
					stat.executeUpdate();
				} catch (SQLException eDuplicateEntry) {
					log.warn("Duplicate Entry in DB (Tweet)!");
				}
			}
		} catch (SQLException e) {
			log.error("error updating table User");
			e.printStackTrace();
		} finally {
			try {
				log.debug("Closing connection");
				if (res != null)
					res.close();
				if (stat != null)
					stat.close();
				if (con != null)
					con.close();
			} catch (SQLException e) {
				log.error("Unable to close connection");
				e.printStackTrace();
			}
		}
	}