fixed db init; qnames that make up the difference filter were wrong