We should use LinkedHashMap to maintain the key order in database repository schema changes.
NPE protection.