fix div by zero problem if no rows are returned
adding some logging for debugging
Merge pull request #1591 from marcel-blonk/PLFM-3084

fix div by zero problem if no rows are returned
Merge pull request #1590 from marcel-blonk/PLFM-3076

get projects for a team sorted alphabetical