Stores to database and plots from database
One to record, one to display