HomeIn-Portal Phabricator

Fixes INP-1763 - Use first found record in update sql in the "\kApplication…