adding temporary scripts to do the database upgrade to schema 31