almost functional.  Now adds to database and tracks