BUG: Fix a PostgreSQL incompatibility.

Fixes the following PostgreSQL error:

 ERROR:  for SELECT DISTINCT, ORDER BY expressions must appear in select list at character 598
 STATEMENT:  SELECT DISTINCT up.userid FROM user2project AS up,
             user2repository AS ur,dailyupdatefile,dailyupdate
                 WHERE dailyupdatefile.dailyupdateid=dailyupdate.id
                 AND dailyupdate.projectid=up.projectid
                 AND ur.credential=dailyupdatefile.author
                 AND up.projectid=5
                 AND up.userid=ur.userid
                 AND (ur.projectid=0 OR ur.projectid=5)
                 AND dailyupdatefile.filename LIKE '%simple.cxx' ORDER BY dailyupdate.id DESC LIMIT 1;
BUG: Return empty array when there are no uploaded files in project instead of error
STYLE: Drop weird copy'n'pasted comments from api/* files