MySQL, DAO, Entities