update Dialog
fix database version bug