finished sql def, added line for PWRUNIT.