Correctly get users from database, refs #1268.
Fixed formatting
Merge pull request #1391 from cmfcmf/users-autocomplete

[WIP] Correctly get users from database, refs #1268.