big ol refactoring - moved to sqliteprovider with database marshalling and restoring
big refactor