Changed services_log mysql query because as is it is too slow for large installations

The query in the MySQL backend for getting services to see log entries for a special user has too many joins. I split the query in two so that it is much faster now (still not as fast as
one would like but workable ;)