Updated to work with the new Assets2 database type.