Converted addUser function to use the new query function
Converted removeUser function to use the new query function
Converted userExists function to use the new query function
Converted functions userExists(), getUser(), hasEmail() and isAdmin() to use the new query function