Used aggregate functions in admin