Adds a plot and changes database entries.