Changing design for Qt SQL class