public synchronized List<RelayMessage> getRecent() throws SQLException {
		List<RelayMessage> messages = new ArrayList<RelayMessage>();
		PreparedStatement stmt = connection.prepareStatement("SELECT nick, message, timeposted FROM messages ORDER BY timeposted DESC LIMIT 10");
		try {
			ResultSet rs = stmt.executeQuery();
			try {
				while (rs.next()) {
					messages.add(new RelayMessage(rs.getString(1), rs.getString(2), new Date(rs.getLong(3))));
				}
			} finally {
				rs.close();
			}
		} finally {
			stmt.close();
		}
		return messages;
	}