MS-SQL: add better fk constraint query