Fix new install database issue