Needed for Android, because the database is in readonly filesystem and also because it is annoying to see files modified every time we run the tests.