Fixed typo
Added method to access entity manager from DAO
Fixed entity initialization error