/// <summary>
        /// Prepares the instance ready for use.
        /// </summary>
        public bool Load()
        {
            //Find the database type
            var fmt = "mysql".ToLower (); //TODO: properties file
            _database = GetFormat (fmt);
            if (null == _database)
            {
                Tools.WriteLine ("Cannot find database format: " + fmt);
                return false;
            }

            //Get a connection
            if (!_database.OpenConnection (_host, _port))
            {
                Tools.WriteLine ("Failed to open a connection to the permission database");
                return false;
            }

            return true;
        }
        /// <summary>
        /// Prepares the instance ready for use.
        /// </summary>
        public bool Load()
        {
            //Find the database type
            var fmt = "mysql".ToLower();              //TODO: properties file

            _database = GetFormat(fmt);
            if (null == _database)
            {
                Tools.WriteLine("Cannot find database format: " + fmt);
                return(false);
            }

            //Get a connection
            if (!_database.OpenConnection(_host, _port))
            {
                Tools.WriteLine("Failed to open a connection to the permission database");
                return(false);
            }

            return(true);
        }