The program connects to the database or creates it if it does not exist. Gets or adds data to the corresponding fields in the tables that are connected.