fix a dbconnection