优化首页的sql，load menu and favorite