Added hibernate configuration

1. Added hibernate
2. Configured code to work with mysql
3. Added an integration test/ how to interact with the service.