Updates the script to fetch database file, also fixes a typo.