add some very basic debugging (stderr) messages when GETting '/'
implement sorting on calculated fields with aggregate function