basic hibernate functionality added