Pre test close db