private void loadConfigs() {
		PoolConnection pcon = ConnectionPool.getConnection();
		Statement stmt = null;

		try {
			Connection con = pcon.connect();
			stmt = con.createStatement();
			System.out.println("Loading butler");
			ResultSet rs = stmt
					.executeQuery("SELECT `name` FROM `accounts` ORDER BY `id` LIMIT 1");
			rs.next();
			butler.login(rs.getString("name"));
			rs.close();
			System.out.println("Loading channel styles");
			rs = stmt.executeQuery("SELECT * FROM `channelstyles`");
			Map<Integer, ChannelStyle> channelStyles = new HashMap<Integer, ChannelStyle>();

			while (rs.next()) {
				channelStyles.put(rs.getInt("id"), new ChannelStyle(rs));
			}

			rs.close();
			System.out.println("Loading channels");
			rs = stmt.executeQuery("SELECT * FROM `channels`");

			while (rs.next()) {
				Channel channel = new Channel(rs, channelStyles.get(rs
						.getInt("style")));
				butler.joinChannel(channel);
				channel.addClient(butler);
				channels.put(rs.getString("name").toLowerCase(), channel);
			}

			rs.close();
			System.out.println("Loading smileys");
			rs = stmt
					.executeQuery("SELECT `code`, `replacement` FROM `smileys`");

			while (rs.next()) {
				smileys.put(rs.getString("code"), rs.getString("replacement"));
			}
		} catch (SQLException e) {
			e.printStackTrace();
		} finally {
			if (stmt != null) {
				try {
					stmt.close();
				} catch (SQLException e) {
				}
			}

			pcon.close();
		}
	}