Fixed close db bug in fixtures