private EncryptedUserRepository()
        {
            string db_filename = Config.Settings ["db_filename"];

            if (db_filename == null)
            {
                string configdir = Config.ConfigDir;

                if (!Directory.Exists(configdir))
                {
                    Directory.CreateDirectory(configdir);
                }

                db_filename = Path.Combine(configdir, "userinfo.db");
            }

            _db = new EncryptedSQLiteDb(db_filename);

            _db.ExecuteUpdate(String.Format("PRAGMA key='{0}'", ENCRYPTION_KEY.Replace('\'', '.')));

            _db.ExecuteUpdate("CREATE TABLE IF NOT EXISTS user" +
                              "(svn_username TEXT UNIQUE NOT NULL, " +
                              "email TEXT UNIQUE NOT NULL, " +
                              "name TEXT NOT NULL, " +
                              "svn_password TEXT NOT NULL)");
        }
        private EncryptedUserRepository()
        {
            string db_filename = Config.Settings ["db_filename"];

            if (db_filename == null) {
                string configdir = Config.ConfigDir;

                if (!Directory.Exists (configdir))
                    Directory.CreateDirectory (configdir);

                db_filename = Path.Combine (configdir, "userinfo.db");
            }

            _db = new EncryptedSQLiteDb (db_filename);

            _db.ExecuteUpdate (String.Format ("PRAGMA key='{0}'", ENCRYPTION_KEY.Replace ('\'', '.')));

            _db.ExecuteUpdate ("CREATE TABLE IF NOT EXISTS user" +
                "(svn_username TEXT UNIQUE NOT NULL, " +
                "email TEXT UNIQUE NOT NULL, " +
                "name TEXT NOT NULL, " +
                "svn_password TEXT NOT NULL)");
        }