Improve SQL for authentication_failure_counts view

Remove extra SELECT statement by using a GROUP BY aggregate function.
Merge pull request #2 from saltybeagle/master

Improve SQL for authentication_failure_counts view