Make dbh object non-global