use a common DSN now instead of a URI

Newline before this line. Also, do not `count()` in `foreach()`, but before it.