Fix the build error when database update failed