filter data from database table.