Added query that resolves ID's to names of users and items