[7868] Added guard sql queries and 7867_01_realmd_account.sql to Makefile