change sql for admin,show only the last 30days records and add filter query(not yet functional)