Use count SQL to check for user existance
Use the MDB2 function to get the count result
Merge pull request #2746 from owncloud/use-count-userexists

Use count SQL to check for user existance