fixed issue #16 : This is complete fix for Issue #16 , removed code redundancy for database
 connection adn used API to create databse connection , user id and
 password are not used in all files now , using single methoed for
 creating connection.

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