class diagram to prepare sql