Add selectSUM and restore not null from deployed production build