Relative filepaths stored in DB

Fixes #373