Add filename to attachment urls

Nicer for end users when they download the attachment. They get a proper
filename for it.
Do not crash on database reset
Add UI for attachments #16

First version
fixup attachments columns