Added simple database persistence