have functionality for adding new entries to the database. If an entry already exists it is updated, otherwise a new entry is added