renamed the data member and added enum sql serialization