Got pagination working on all three database query pages.