Fixed major oversight

Files were being added to the database with the full path, relative to
current system. However, that'd be a problem if you had the database on
a remote server like I do.
Paths are now added without the 'in' path from config, and the config
'in'path will be added when opening from browser