added filtering for received database querries