Bug 186: Minor fixed on updating view db