Added paginate function to help users paginate through database results.

Sorry, but I was in git hell, and decided to destroy my old boss_db fork and start anew to make things clean.