add class details and new db