Backend prototype for data filtering