public boolean updateConfig(Config config) {
		Connection conn = ConnectionFactory.getConnection();
		PreparedStatement pstmt=null;
		String sql = "UPDATE config SET c_siteName=?, c_siteURL=?, "
			+"c_isOpen=?, c_closeWord=? ,copyright=? WHERE id=1";
		try {
			 pstmt = conn.prepareStatement(sql);
			 pstmt.setString(1, config.getCSiteName());
			 pstmt.setString(2, config.getCSiteUrl());
			 pstmt.setBoolean(3, config.getCIsOpen());
			 pstmt.setString(4, config.getCCloseWord());
			 pstmt.setString(5, config.getCopyright());

			return pstmt.executeUpdate()==1?true:false;

		} catch (SQLException e) {

			e.printStackTrace();
			return false;
		}finally{
			SQLCommand.close(pstmt);
			SQLCommand.close(conn);
		}
		
	}