Update the sql and complete the page view style.