A couple of useful scripts to tend the database.