unable to upgrade database due to error java heap space