[Added] Used hibernate instead of use jdbc connection to connect with
database
[Refactoring] junits test