modified MysqlDBHelper.getSumPage method