Fix strange issue with opera, hopefully
Fix collection modified when creating db connections