define dbChanged on each page