There where some problems with persistence. Changed also the place to store data. Drop privileges when not neede