Fix the problem with relative local paths to upload files
Add info attributo of users to some SQL queries where it was missing