Added clear db and generate records for test user.  Also fixed an ajax problem retrieving the last page