adding some stuff for database persistence