Uses the database to keep a log of all inserts, updates, and deletes.