Permission problem fixed
Separated db initialization and dummy data generation