Fix db connection object