update dbChanged function to check if the current page is the page they
are supposed to be on.