Your DB_DIR variable is set wrong. The script cannot locate your database - please read the documentation