fix dbconnection