database project with hibernate