Changed the categories next function to properly increment by 10 (was at 20 before). Revamped the customers filtering SQL options so that they take into account categories. The old code is simply commented out. Needs optimization testing still.