DB  connection bug fix
Minor changes in DB CONNECTION
trying to merge