Handle paths without trailing /
Use file modification time rather than DB insert time
Explicitly handle ctrl-c