The problem is that $dbh was here before. So i called my variable in the same style.