writes database_url/pw config.js database.json