Fix install database error