Adding hibernate support and DAO