now i can read the DB and write it in memory