Is there any quick way of creating a pagination feature using data from the database? If not I'd like to suggest a class for this, which automatically counts the database results and retrieves the result sets automatically based on the given function arguments.