core module improvement.
Added hibernate config.
Set up db connection