Integrated database using hibernate