moved patch into the transaction
Merge pull request #421 from giastfader/issue_412_slow_get_user_profile

moved patch into the transaction
Merge pull request #423 from baasbox/issue_412_slow_get_user_profile

Issue 412 slow get user profile
fixed merge conflicts