Removed testing params properly close dbs in GetClasses