fixing Issue #16 : Using Api from DbContainor to extablish databse
connection and removing code from classes

Signed-off-by: unknown <ashish28.sirt@gmail.com>
Fixed issue #16 for PublishStatus.java : Used Api from DbContainor and
removed duplicate code

Signed-off-by: Ashish Namdev <ashish28.sirt@gmail.com>
Fxi for  Issue #19 : Modify code Indentation : code should be aligned with
unix style ,

Signed-off-by: Ashish Namdev <ashish28.sirt@gmail.com>