fixed connect db