Improved performance by fetching user ID and e-mail in one query. fixes #8