Fix various ORM bugs
Add reflection library used to simplify DAO instantiation