changes made to dbConnection as per the discussion with Brett : Sachin Grover