Changes to the database structure for the analysis metrics