enable resuming Hub state from database

closes #12