codechanges inside class.database. some comments.