added serializer
added custom aggregate class to fetch conditional sum