Add script to extract metrics from the database.