Using MySQLPersister class in Factory