Make stasis persist through restarts by saving it in the DB

Fixes lykoss/lykos#28.