/// <summary>
        /// Saves the database.
        /// </summary>
        /// <param name="state"> The object state.</param>
        public static void SaveAccountDatabase(object state)
        {
            AccountDatabaseConfigurationHandler accountDatabaseHandler = new AccountDatabaseConfigurationHandler();

            string file;

            if ( state == null )
            {
                file = "AccountDatabase.xml";
            }
            else
            {
                file = (string)state;
            }

            accountDatabaseHandler.Save(_accountDatabase, "Accounts", file);
        }