Issue #707864 by GaborHojtsy, xgretsch, herom: Fixed several database failures: APIs not translated to D7