Install `svnperms.conf` with `svn export`

Instead of `svnlook cat` and complex pipe logic.
Also fixes some style issues with embedded SQL statements.