minor refactoring of the backup function
minor refactoring of the backup function
set up framework for inserting via the api and storing the result in the drupal db.