Generated classes from database