function names changed to correct ones in pagination.js
added new query to separate every 10th result into a new row in SQL in
queries.js