@eLobato, yes it's similar code that can be DRY'd up, but the problem is that `all_config_templates` will return the entire array, not paginated, which is not good.  The pagination and search should be all the same db retrieval call.