Query for user ID based on user type and owner ID (fixes bugs that occur when a resident is also a contact)