Question: what is the difference between class diagram and database diagram?
Answer: Generally data models define how the database is implemented. Those diagrams are entity diagrams. A class model is the functional relationships between objects in your system. A class has data but it isn't the data model.