Adding some useful functions for stashing and restoring core pieces to the db.