Added uuid-username mapping for SQL permission backend. Fixes #1138