Changed users to composite key of username and appname and users only has username for a key and not the composite key of username and email