Add sefeguard agains null
Don't link NULL foreign key values
Don't print query in edit
Don't print query in edit
Don't print query in edit