added persistence and database manager