SQL: fixed bug on AVG function against group by
Fixed issue #1293 adding server.dblist resource to the guest user