Changed lib/db to set implementation. Fixed filter check in lib/fb