Merge pull request #183 from pgiraud/db_upgrade_workflow

Database needs upgrade for statistics to be correct
Fix user privileges message
Link to user page in history