Removed the 'dbdirname' variable in open_databases().