def __init__(self, nodes):
        """Establishes a connection to the ScyllaDB database, creates the "wdm" keyspace if it does not exist
        and creates or updates the users table.
        """
        while True:
            try:
                session = Cluster(contact_points=nodes).connect()
                break
            except Exception:
                sleep(1)
        session.execute("""
            CREATE KEYSPACE IF NOT EXISTS wdm
            WITH replication = { 'class': 'SimpleStrategy', 'replication_factor': '3' }
            """)
        session.default_consistency_level = ConsistencyLevel.QUORUM

        connection.setup(nodes, "wdm")
        sync_table(Payments)