build generic DAO system, bugfixing TODO: fix persistence unit not found error