Added database persistence.