remove the /resources/sql directory and its content. SQL queries will be in /application/model/sql
use the Page class instead of the page_helper