mnor changes to the database and the printing