Commit of the index page and search page refactored and using the test
db code.